package pojo;

import java.io.Serializable;
import java.security.PublicKey;

public class Score implements Serializable {
    private int s_id;//学号
    private int p_id;//试卷号
    private float score;//成绩
    private int answertime;//作答时间
    private float avg_score;//平均成绩
    private float max_score;//最高成绩
    private Paper paper;
    private Student student;
    private String s_name;

    public Score(int s_id, int p_id, float score, int answertime, float avg_score, float max_score, Paper paper, Student student,String s_name) {
        this.s_id = s_id;
        this.p_id = p_id;
        this.score = score;
        this.answertime = answertime;
        this.avg_score = avg_score;
        this.max_score = max_score;
        this.paper = paper;
        this.student = student;
        this.s_name=s_name;
    }

    public Score() {
    }

    ;

    public int getS_id() {
        return s_id;
    }

    public void setS_id(int s_id) {
        this.s_id = s_id;
    }

    public int getP_id() {
        return p_id;
    }

    public void setP_id(int p_id) {
        this.p_id = p_id;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public int getAnswertime() {
        return answertime;
    }

    public void setAnswertime(int answertime) {
        this.answertime = answertime;
    }

    public float getAvg_score() {
        return avg_score;
    }

    public void setAvg_score(float avg_score) {
        this.avg_score = avg_score;
    }

    public float getMax_score() {
        return max_score;
    }

    public void setMax_score(float max_score) {
        this.max_score = max_score;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }

    public Paper getPaper() {
        return paper;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Student getStudent() {
        return student;
    }

    public void setS_name(String name) {
        this.s_name = name;
    }

    public String getS_name() {
        return s_name;
    }
}
